package com.sxt.system.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 操作返回对象  不能返回数据
 * @author Administrator
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {

	public static final ResultObj LOGIN_ERROR = new ResultObj(400100,"登录失败，用户名或密码错误");
	public static final ResultObj LOGIN_SUCCESS = new ResultObj("登录成功");
	
	public static final ResultObj ADD_SUCCESS = new ResultObj("添加成功");
	public static final ResultObj UPDATE_SUCCESS = new ResultObj("更新成功");
	public static final ResultObj DELETE_SUCCESS = new ResultObj("删除成功");
	public static final ResultObj RESET_SUCCESS = new ResultObj("重置成功");
	public static final ResultObj DISPATCH_SUCCESS = new ResultObj("分配成功");
	
	public static final ResultObj ADD_ERROR = new ResultObj("添加失败");
	public static final ResultObj UPDATE_ERROR = new ResultObj("更新失败");
	public static final ResultObj DELETE_ERROR = new ResultObj("删除失败");
	public static final ResultObj RESET_ERROR = new ResultObj("重置失败");
	public static final ResultObj DISPATCH_ERROR = new ResultObj("分配失败");
	
	public static final ResultObj CHANGE_ERROR = new ResultObj(400101,"修改密码错误");
	public static final ResultObj CHANGE_SUCCESS = new ResultObj("修改密码成功");
	public static final ResultObj CHANGE_OLD_ERROR = new ResultObj(400103,"原密码错误");
	public static final ResultObj CHANGE_SECOND_ERROR = new ResultObj(400104,"第二次密码不正确");
	
	
	private Integer code = 200;
	private String msg = "";
	
	public ResultObj(String msg) {
		super();
		this.msg = msg;
	}

}
